/*
 /*
 * GUIAltaLibroIvaVenta.java
 *
 * Created on 02 de septiembre de 2011, 13:24
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package cliente.gui;

import comun.dto.*;
import java.awt.Color;
import java.awt.Component;
import java.awt.Container;
import java.awt.Rectangle;
import java.awt.TextField;
import java.awt.event.ActionListener;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextArea;
import javax.swing.JTextField;
import javax.swing.SwingConstants;

public class GuiABMLibroIva extends javax.swing.JFrame {

    public GuiABMLibroIva() {
    	initComponents();
    	this.setLocationRelativeTo(null);
    }
    
    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */    
    @SuppressWarnings("unchecked")
    	// <editor-fold defaultstate="collapsed" desc="Generated Code">  
    private void initComponents() {

        jPanel1 = new javax.swing.JPanel();
        Alta = new javax.swing.JButton();
        Baja = new javax.swing.JButton();
        Modificacion = new javax.swing.JButton();
        AgregarComprobantes = new javax.swing.JButton();
        Atras = new javax.swing.JButton();
        Salir = new javax.swing.JButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

        jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder("ABM LIBRO IVA"));

        Alta.setText("ALTA");

        Baja.setText("BAJA");

        Modificacion.setText("MODIFICACION");

        AgregarComprobantes.setText("AGREGAR COMPROBANTES");

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(Alta)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 49, Short.MAX_VALUE)
                .addComponent(Baja)
                .addGap(40, 40, 40)
                .addComponent(Modificacion)
                .addGap(46, 46, 46))
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addGap(91, 91, 91)
                .addComponent(AgregarComprobantes)
                .addContainerGap(112, Short.MAX_VALUE))
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addGap(37, 37, 37)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(Alta)
                    .addComponent(Modificacion)
                    .addComponent(Baja))
                .addGap(27, 27, 27)
                .addComponent(AgregarComprobantes)
                .addContainerGap(29, Short.MAX_VALUE))
        );

        Atras.setText("ATRAS");

        Salir.setText("SALIR");

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 400, Short.MAX_VALUE)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addGap(58, 58, 58)
                .addComponent(Atras)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 160, Short.MAX_VALUE)
                .addComponent(Salir)
                .addGap(56, 56, 56))
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addContainerGap())
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 300, Short.MAX_VALUE)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 55, Short.MAX_VALUE)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(Salir)
                    .addComponent(Atras))
                .addGap(45, 45, 45))
        );

        pack();
    }// </editor-fold>                      

    /**
	 * RETORNA EL BOTON ALTA
	 * @return JButton
	 */
	public JButton getJBAlta() {
        return Alta;
    }
	
	// RETORNA EL BOTON BAJA
  
	public JButton getJBBaja() {
      return Baja;
  }
	
	//RETORNA EL BOTON MODIFICACION
	
	public JButton getJBModificacion() {
	      return Modificacion;
	  }

	//RETORNA EL BOTON CANCELAR
	
	public JButton getJBSalir() {
	      return Salir;
	  }	
	public JButton getJBAgregarComprobantes(){
		return AgregarComprobantes;
	}
	
	 
  public void setActionListeners(ActionListener lis) {
      Alta.addActionListener(lis);
      Baja.addActionListener(lis);
      Modificacion.addActionListener(lis);
      Salir.addActionListener(lis);
      AgregarComprobantes.addActionListener(lis);
  }

  // Variables declaration - do not modify
  private javax.swing.JButton AgregarComprobantes;
  private javax.swing.JButton Alta;
  private javax.swing.JButton Atras;
  private javax.swing.JButton Baja;
  private javax.swing.JButton Modificacion;
  private javax.swing.JButton Salir;
  private javax.swing.JPanel jPanel1;
  // End of variables declaration

}
